# Contributor: Andrew Hills <ahills@ednos.net>
# Maintainer: Andrew Hills <ahills@ednos.net>
pkgname=fortune
pkgver=0.1
pkgrel=4
pkgdesc="Fortune cookie program ported from OpenBSD"
url="https://github.com/ahills/fortune"
arch="all"
license="BSD-3-Clause"
options="!check" # no test suite
makedepends="libbsd-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/ahills/fortune/archive/v$pkgver.tar.gz
	gcc14.patch
	"

build() {
	make PREFIX=/usr
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
}

sha512sums="
11c883aef8fafea6237fcd1b45fbbb169d6996a253f1def720dd9379c4bfe1bad050789c6e89eb7f1960abde54fe04d85fd13148bd0af8528de630611c0e6e48  fortune-0.1.tar.gz
38a3ca3ed2ae5a8c6d45464a64d571f5f3cda9ca1d7ab6fe082ab9e32026ecc5e559c6aeef7436cf5a7e877d50faf4e88ef063b5a49a353447563a566fa09190  gcc14.patch
"
